//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_extractmagvals2.sqf"
#include "x_setup.sqf"

private ["_magar", "_num_startpos", "_brack_pos", "_str_num_ar"];
_magar = toArray _this;
_num_startpos = -1;
_brack_pos = -1;
for "_i" from (count _magar - 1) to 0 step -1 do {
	_c = _magar select _i;
	if (_c == 41) then { //  )
		_brack_pos = _i;
	};
	if (_c == 47) exitWith { //    /
		_num_startpos = _i + 1;
	};
};
_str_num_ar = [];
__TRACE_3("","_magar","_num_startpos","_brack_pos")
for "_i" from _num_startpos to (_brack_pos - 1) do {
	_str_num_ar set [count _str_num_ar, _magar select _i];
};
parseNumber (toString _str_num_ar)